package com.cjj.common.framework.annotation;

import org.springframework.boot.autoconfigure.condition.ConditionalOnProperty;

import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;

/**
 * @author DoyuTu
 * @version 1.0.0
 * @date 2020-03-13 15:13
 * @description 定时任务注解开关
 */
@Target(ElementType.TYPE)
@Retention(RetentionPolicy.RUNTIME)
@ConditionalOnProperty(prefix = "scheduling", value = "enabled", havingValue = "true")
public @interface EnableTaskSwitch {
}
